import { POST, UPLOAD } from "../../services/request";

const Base = {
    register(data = {})
    {
        return POST({
            url:'/business/base/register',
            params:data
        });
    },
    login(data = {})
    {
        return POST({
            url:'/business/base/login',
            params:data
        });
    },
    profile(data = {})
    {
        return UPLOAD({
            // http://www.ask.com/shop/business/base/profile
            url:'/business/base/profile',
            params:data
        });
    },
    check(data = {})
    {
        return POST({
            url:'/business/base/check',
            params:data
        });
    },
    emailSend(data = {})
    {
        return POST({
            url:'/business/email/send',
            params:data
        });
    },
    emailCheck(data = {})
    {
        return POST({
            url:'/business/email/check',
            params:data
        });
    },
    collection(data = {})
    {
        return POST({
            url:'/business/collection/index',
            params:data
        });
    },
    CollectionDel(data = {})
    {
        return POST({
            url:'/business/collection/del',
            params:data
        });
    }
}

export default Base;